package com.aistar.service.resume.impl;

import com.aistar.mapper.AwardMapper;
import com.aistar.mapper.EducationMapper;
import com.aistar.mapper.InternMapper;
import com.aistar.mapper.ProjectMapper;
import com.aistar.service.resume.IDeleteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class DeleteServiceImpl implements IDeleteService {
    @Autowired
    private EducationMapper educationMapper;
    @Autowired
    private InternMapper internMapper;
    @Autowired
    private ProjectMapper projectMapper;
    @Autowired
    private AwardMapper awardMapper;

    @Override
    public Integer deleteEducationById(Integer educationId) {
        return educationMapper.deleteEducationById(educationId);
    }

    @Override
    public Integer deleteInternById(Integer internId) {
        return internMapper.deleteInternById(internId);
    }

    @Override
    public Integer deleteProjectById(Integer projectId) {
        return projectMapper.deleteProjectById(projectId);
    }

    @Override
    public Integer deleteAwardIdById(Integer awardId) {
        return awardMapper.deleteAwardById(awardId);
    }
}
